Expand description

The macros use by tauri-interop to generate dynamic code depending on the target

Without tauri-interop the generated code can’t compile.

Macros§

  • Collects all commands annotated with tauri_interop::command and provides these with a get_handlers() in the current mod
  • Combines multiple modules containing commands
  • Simple macro to include multiple imports (seperated by |) not in wasm
  • Simple macro to include multiple imports (seperated by |) only in wasm

Attribute Macros§

  • Generates the wasm counterpart to a defined tauri::command
  • Conditionally adds the macro binding or tauri::command to a struct
  • Marks a mod that contains commands

Derive Macros§

  • Emitevent
    Generates a default Emit implementation for the given struct.
  • Generates a default EmitField implementation for the given struct.
  • Eventevent
    Conditionally adds Listen or Emit to a struct.
  • Listenevent
    Generates a default Listen implementation for the given struct.
  • Generates a default ListenField implementation for the given struct.